graph TB
    %% 定义服务节点
    ConfigServer[配置服务\nconfig_server]
    BluetoothServer[蓝牙服务\nbluetooth_server]
    CloudServer[云服务\ncloud_server]
    MonitorServer[监控服务\nmonitor_server]
    WebServer[Web服务\nweb_server]
    
    %% 定义外部系统
    Client[客户端设备]
    CloudPlatform[云平台]
    Database[(数据存储)]
    
    %% 定义服务之间的关系
    ConfigServer -->|配置信息| BluetoothServer
    ConfigServer -->|配置信息| CloudServer
    ConfigServer -->|配置信息| MonitorServer
    ConfigServer -->|配置信息| WebServer
    
    BluetoothServer -->|设备数据| CloudServer
    BluetoothServer -->|状态更新| MonitorServer
    
    CloudServer -->|数据同步| CloudPlatform
    CloudServer -->|存储数据| Database
    CloudServer -->|状态更新| MonitorServer
    
    MonitorServer -->|监控数据| WebServer
    MonitorServer -->|告警信息| CloudServer
    
    WebServer -->|API请求| CloudServer
    
    Client -->|蓝牙连接| BluetoothServer
    Client -->|HTTP请求| WebServer
    
    %% 子图分组
    subgraph FDS Master Go 系统
        ConfigServer
        BluetoothServer
        CloudServer
        MonitorServer
        WebServer
        Database
    end
    
    %% 样式设置
    classDef configService fill:#f9f,stroke:#333,stroke-width:2px
    classDef bluetoothService fill:#bbf,stroke:#333,stroke-width:2px
    classDef cloudService fill:#bfb,stroke:#333,stroke-width:2px
    classDef monitorService fill:#fbf,stroke:#333,stroke-width:2px
    classDef webService fill:#fbb,stroke:#333,stroke-width:2px
    classDef external fill:#eee,stroke:#333,stroke-width:1px,stroke-dasharray: 5 5
    
    class ConfigServer configService
    class BluetoothServer bluetoothService
    class CloudServer cloudService
    class MonitorServer monitorService
    class WebServer webService
    class Client,CloudPlatform,Database external
